package com.ssy.lingxi.marketing.api.model.request;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 查询进货单商品的活动到手价
 */
@Getter
@Setter
@ToString
public class CartActivityPriceFeignRequest implements Serializable {

    private static final long serialVersionUID = -2454390956973513484L;
    /**
     * 采购商会员id.
     */
    @NotNull(message = "采购商会员id不能为空")
    private Long memberId;

    /**
     * 采购商角色id.
     */
    @NotNull(message = "采购商角色id不能为空")
    private Long roleId;

    /**
     * 商品列表.
     */
    @Valid
    @Size(min=1,message = "商品信息不能为空")
    private List<CartActivityPriceRequest> skuList;
}
